package top.kaoshanji.p1ch03b;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import top.kaoshanji.p1ch03b.support.SvnInfoCleanVisitor;

import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;

/**
 * 代码清单 p1ch03b-07：删除Subversion元数据的目录遍历方式
 * 并未执行，找不到合适的环境
 * author kaoshanji
 * ^_^
 * create time 2025/1/10 20:54
 */
public class FileVisitorExample01 {

    private static final Logger logger = LogManager.getLogger(FileVisitorExample01.class);

    public static void main(String[] args) throws IOException {
        logger.info("...代码清单 p1ch03b-07：删除Subversion元数据的目录遍历方式...");

        Path path = Paths.get("C:", "chapter3");
        Files.walkFileTree(path, new SvnInfoCleanVisitor());

    }

}
